public class MultipleThrow
 {
    public static void main(String[] args)
	{
        try
		{
            MultipleThrow met = new MultipleThrow();
            System.out.println("length of GIRISH is "+met.getStringSize("GIRISH"));
            System.out.println("length of GOWDA'S is "+met.getStringSize("GOWDA'S"));
            System.out.println("length of null string is "+met.getStringSize(null));
        } catch (Exception ex)
		{
            System.out.println("Exception message: "+ex.getMessage());
        }
    }
     
    public int getStringSize(String str) throws Exception
	{
        if(str == null)
		{
            throw new Exception("String input is null");
        }
        return str.length();
    }
	
	public int getStringSiz(String str) throws Exception
	{
        if(str != null)
		{
            throw new Exception("String is Valid");
        }
        return str.length();
    }
}